package cn.edu.imau.zy.common.core.entity.examination;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import cn.edu.imau.zy.common.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
import java.util.Date;
import java.util.Map;
import java.util.HashMap;
import java.math.BigDecimal;
import cn.edu.imau.zy.common.core.domain.BaseEntity;
import java.util.Date;

/**
 * 学员错题本信息对象 e_student_wrong_book
 * 
 * @author xsc
 * @date 2021-12-04
 */

@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("e_student_wrong_book")
public class EStudentWrongBook implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private String id;

    /** 学员id */
    @Excel(name = "学员id")
    private String studentId;

    /** 试题id */
    @Excel(name = "试题id")
    private String questionInfoId;

    /** $column.columnComment */
    @Excel(name = "试题id", width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd")
    private Date createDate;

    /** $column.columnComment */
    @Excel(name = "试题id", width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern = "yyyy-MM-dd")
    private Date updateDate;

    /** 试题分数 */
    @Excel(name = "试题分数")
    private Integer questionMark;

    /** 学员答案 */
    @Excel(name = "学员答案")
    private String studentAnswer;

    /** 试题得分 */
    @Excel(name = "试题得分")
    private Integer mark;

    /** 批改状态 0 错误 1 正确 2 待批改 3.已批改（针对主观题） */
    @Excel(name = "批改状态 0 错误 1 正确 2 待批改 3.已批改", readConverterExp = "针=对主观题")
    private Integer correctStatus;


    @TableField(exist = false)
    private Map<String, Object> params = new HashMap<>();

}
